<template>
	<view class="contact">
		<image class="img" src="http://www.itcast.cn/2018czydz/images/gywmban.jpg"></image>
		<view class="info">
			<view  @click="phone">联系电话：13226593251(点击拨打) </view>
			<view>校区地址：浙江省杭州市下沙经济开发区4号大街187号盛泰时代山</view>
			
		</view>
		<map class="map" :longitude="longitude" :latitude="latitude" :markers="markers" :scale="scale"></map>
	</view>

</template>

<script>
	export default {
		data() {
			return {
        longitude: 120.363172,
        latitude: 30.312212,
		// 设置地图缩放大小
		scale: 13,
		// 设置图片及位置
		markers:[
			{
				longitude: 120.363172,
				latitude: 30.312212,
				iconPath: '../../static/hmlogo.png',
				width: 30,
				height: 30
			}
		]
			}
		},
		
		methods: {
			phone(){
				uni.makePhoneCall({
					phoneNumber:"13226593251"
				})
			}

		}
	}
</script>

<style>
	.contact {}

	.img {
		width: 750rpx;
		height: 320rpx;
	}

	.info {
		padding: 10rpx 20rpx;
		font-size: 30rpx;

	}

	.info view {

		line-height: 80rpx;
		border-bottom: 1px solid #eee;

	}
</style>
